package com.esyoga.yoyoga.handler;

import com.esyoga.yoyoga.pojo.TStudent;
import com.esyoga.yoyoga.service.StudentWalletService;
import lombok.Data;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Data
@Controller
@RequestMapping("/Wallet")
public class StudentWalletHandler {
    @Resource
    private StudentWalletService walletService;

    @RequestMapping("/showBalance")
    @ResponseBody
    public  List<TStudent> showBalance(Integer sId){

      return   walletService.showBalance(sId);
    }

}
